<?php
namespace app\validate;

use think\Validate;

class ProfitCarry extends Validate
{
    protected $rule = [
        'money' => 'require|vali',
    ];

    protected $message = [
        'money.require' => '必须填写金额',
        'money.vali' => '提现金额错误',
    ];

    public function vali($data){
        $data = round($data,2);
        if($data <= 0 || $data > 10000000){
            return false;
        }
        return true;
    }

}


